RT_SECURE_NO_WARNINGS 1


#include<iostream>
using namespace std;

class A
{
public:
	A(int x=100)
	{
		_x = x;
	}
private:
	int _x;
};

class Date
{
	friend std::ostream& operator<<(std::ostream& out, const Date& d);
	friend std::istream& operator>>(std::istream& in, Date& d);
public:
	Date()
		:x(20),
		y(20)
		//a(10)
	{
		cout << x << " " << y << endl;
	}
	void Printf()
	{
		cout << "Print" << endl;
	}
private:
	int x;
	int y;
	A a;
};

class B
{
public:
	B()
		:b()
	{

	}
	void Printf()
	{
		cout << a <<" "<< b << endl;
	}
private:
	int a;
	int b;
};

std::ostream& operator<<(std::ostream& out, const Date& d)
{
	out << d.x << d.y;
	return out;
}

std::istream& operator>>(std::istream& in, Date& d)
{
	in >> d.x >> d.y;
	return in;
}


int main()
{
	B b;
	b.Printf();
	//Date a;
	//cout << &a << endl;
	////Date* b = &a;
	////b->Printf();
	//Date b;
	//cin >> b >> a;
	//cout << a << b<<endl;
	return 0;
}
